<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品推荐</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">

    <link href="css/plugins/jquery-confirm/jquery-confirm.min.css" rel="stylesheet">

    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/core.js"></script>
</head>
<body>

<div class="container">
    <div>
        <form>
            <div class="form-group">
                <label for="goodsName">商品名称</label>
                <input type="text" class="form-control" id="goodsName" readonly>
            </div>
            <div class="form-group">
                <label for="goodsType">所属产品线</label>
                <input type="text" class="form-control" id="goodsType" readonly>
            </div>

            <div class="form-group">
                <label for="goodsUrl">商品图片</label>
                <div style="border: 1px solid #ddd;border-radius: 4px; width: 210px;">
                    <img id="goodsUrl" style="width: 200px;height: auto;" src="">
                </div>
            </div>
        </form>
    </div>

    <div>
        <div class="btn-group hidden-xs" id="ExistRecToolbar" role="group">
            <h3>已添加的推荐商品</h3>
            <button id="btn-rmfromGroup" type="button" class="btn btn-outline btn-default" onclick="rmFromRec()">
                <i class="glyphicon glyphicon-trash" aria-hidden="true">从当前推荐列表移除</i>
            </button>
        </div>
        <table id="exist-rec-goods" data-toolbar="#ExistRecToolbar"/>
    </div>
    <div>
        <div class="btn-group hidden-xs" id="addRecToolbar" role="group">
            <h3>可选推荐商品列表</h3>
            <button id="btn-addtoRec" type="button" class="btn btn-outline btn-default" onclick="addToRec();">
                <i class="glyphicon glyphicon-plus" aria-hidden="true">添加到推荐</i>
            </button>
            <div style="float: left;margin: 0 5px 0 25px">
                <span>分组筛选:</span>
            </div>
            <div style="float: left">
                <select id="curGroup" name="" class="form-control">
                    <!--    <optgroup data-id="" label="">
                        </optgroup>
                        <optgroup label="Group 2">
                            <option>Option 2.1</option>
                            <option>Option 2.2</option>
                        </optgroup>-->
                </select>
            </div>
        </div>
        <table id="add-rec-goods" data-toolbar="#addRecToolbar"/>
    </div>

</div>

<!--bootstrap-table-->
<script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<!--alert-beautify-->
<script src="js/plugins/jquery-confirm/jquery-confirm.min.js"></script>
<script src="js/alert-beautify.js"></script>

<script src="js/goods_recommend.js"></script>
</body>
</html>